﻿namespace Console_Cala;

public static class Calculator
{
    public static double Add(double a, double b)=> a + b;
    public static double Sub(double a, double b)=> a - b;
    public static double Mul(double a, double b)=> a * b;
    public static double Div(double a, double b)
    {
        if (b==0)
        {
            throw new DivideByZeroException();
        }
        return a / b;
    }
}